package org.ichihamigua.video.service;


import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.ichihamigua.common.framework.entity.Result;
import org.ichihamigua.common.video.dto.CommitVideoDto;
import org.ichihamigua.common.video.dto.CreateVideoDto;
import org.ichihamigua.common.video.dto.PushVideoDto;
import org.ichihamigua.common.video.entity.VideoEntity;
import org.ichihamigua.common.video.entity.vo.VideoVo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;
import vo.PageVo;

/**
 * 视频服务层
 * @author rainkyzhong
 * @date 2023/10/29 1:28
 */
public interface VideoService extends IService<VideoEntity> {
    Result<?> createVideo(Long userId, String ipAddress, CreateVideoDto dto);
    Result<?> pushVideo(MultipartFile videoFile, PushVideoDto dto);

    Result<?> saveVideo(@RequestBody CommitVideoDto dto);

    Result<PageVo<VideoVo>> getVideoList(Long categoryId, Integer pageNumber);
}
